Ext.ClassManager.create('vacs.model.Consultas', {
	extend: 'Ext.data.Model',
	fields: [
	         {name: 'idconsulta', type: 'int'},
		        {name: 'fechaConsulta', type: 'string', convert: function(hora){   return Ext.Date.format(new Date(hora),'d/m/Y -- g:i a'); }}, 
		        {name: 'peso', type: 'string'},
		        {name: 'talla', type: 'string'},
		        {name: 'tensionArterial', type: 'string'},
		        {name: 'alergias', type: 'string'},
		        {name: 'frecuenciaCardiaca', type: 'string'},
		        {name: 'glucosa', type: 'string'},
		        {name: 'notas', type: 'string'}
	],
	proxy: {
		url:    '/consultas/getConsultas',
	    type: 'ajax',
	    method: 'POST',
	    
	    reader: {
	        type: 'json'
	    },
	    headers: {
	    	'Accept' : 'application/json',
	    	'Content-Type' : 'application/json'
	    }
    }
});

var proxyStoreConsulta= new Ext.data.HttpProxy({  // force it to use GET method
    
});
	Ext.define('ConsultaModel', {
	    extend: 'Ext.data.Model',
	    idProperty: 'idconsulta',
	    fields: [
	        
	           
	    ]
	});
